home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.ulg.ac.be!news
- From: Louis Bronne <bronne@montefiore.ulg.ac.be>
- Newsgroups: comp.lang.c
- Subject: qsort on Solaris
- Date: Wed, 17 Apr 1996 22:02:11 -0400
- Organization: UniversitΘ de LiΦge
- Message-ID: <3175A2A3.1664EB7F@montefiore.ulg.ac.be>
- NNTP-Posting-Host: cs508.gw.ulg.ac.be
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (X11; I; Linux 1.1.47 i486)
-
- Hello !
-
- I'm experiencing big trouble with qsort on Solaris.
- My program runs well on Linux (GNU qsort) but the Solaris qsort
- has a very strange behaviour. By instance, when it has to sort
- only two elements, it does a comparison between the element 0 and 1
- (normal !) but does it twice !
- After that, it begins to compare the elements -1, -2, -3 etc. with the
- 0th one.
-
- So a happy "Segmentation fault" rises !
-
- Any idea ?
-
- --
- Louis Bronne
- E-mail: bronne@montefiore.ulg.ac.be
- URL: http://www.montefiore.ulg.ac.be/cgi-bin-ulg/bronne
-